package com.googlecode.npgame.graphics;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.view.MotionEvent;

/**
 * @author Josh (joshbruning)
 */
public class NetworkProtocolGameSurfaceView extends GLSurfaceView {

  private NetworkProtocolGameRenderer renderer;

  public NetworkProtocolGameSurfaceView(Context context) {
    super(context);

    setEGLContextClientVersion(2);
    this.renderer = new NetworkProtocolGameRenderer();
    setRenderer(this.renderer);
  }

  @Override
  public boolean onTouchEvent(MotionEvent event) {
    return this.renderer.onTouchEvent(event);
  }
}
